<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/commons/include/html_doctype.html"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/commons/page/codegen.jsp"%>

<%//@include file="/commons/myconfig.jsp"%>
 
<script type="text/javascript" src="${ctx}/js/plugins/layui/layui.js"></script>
<style type="text/css" src="${ctx}/js/plugins/layui/css/layui.css"></style>
<script type="text/javascript" src="${ctx}/js/gpoint/rdp/card/department/department.js"></script>
<title>...</title>
</head>

<body>
	<!-- 顶部按钮 -->
	<div class="wrapper wrapper-content  animated fadeInRight col-sm-12">
		<c:choose>
			<c:when test="${empty department}">
				<div class="alert alert-warning m-t-sm">尚未指定一个校园组织</div>
			</c:when>
			<c:otherwise>
				<div class="panel-form">
					<form class="fr-form" id="departmentFormGet">
						<input type="hidden" id="id" value="${department.id}" />
						<div class="fr_response_field col-sm-6">
							<div class="fr-form-group">
								<label class="fr-control-label">组织名称</label>
								<div class="fr-form-block">

								<p class="form-control-static">${department.orgname}</p>
								</div>
							</div>
						</div>
						<div class="fr_response_field col-sm-6">
							<div class="fr-form-group">
								<label class="fr-control-label">组织编码</label>
								<div class="fr-form-block">
									<p class="form-control-static">${department.orgcode}</p>
								</div>
							</div>
						</div>
						<div class="fr_response_field col-sm-6">
							<div class="fr-form-group">
								<label class="fr-control-label">组织类型</label>
								<div class="fr-form-block">
									<p class="form-control-static">
										<script type="text/javascript">
											//document.write(_JS_MYCONFIG.get_enum_desc('DEPARTMENT', '${department.typecode}'))
										</script>
										${typeMap.get(department.typecode)}
									</p>
								</div>
							</div>
						</div>
						<div class="fr_response_field col-sm-6">
							<div class="fr-form-group">
								<label class="fr-control-label">启用</label>
								<div class="fr-form-block">
								    <p class="form-control-static">${department.flag eq '1' ? '是':'否'}</p>
								</div>
							</div>
						</div>
						<div class="fr_response_field col-sm-12">
							<div class="fr-form-group">
								<label class="fr-control-label">备注</label>
								<div class="fr-form-block">
									<p class="form-control-static">${department.remark}</p>
								</div>
							</div>
						</div>
					</form>
					<div style="clear: both"></div>
				</div>
			</c:otherwise>
		</c:choose>
	</div>
</body>

</html>